package cn.chinaflame.pagodas.pool.forkjoin;

import java.util.concurrent.ForkJoinPool.ManagedBlocker;


public class WS<E> implements ManagedBlocker {

	@Override
	public boolean block() throws InterruptedException {
		return false;
	}

	@Override
	public boolean isReleasable() {
		return false;
	}/*
	    private final Call<E> call;
		volatile E item = null;
		
		public WS(Call<E> call) {
		    this.call = call;
		}
		
		public boolean block() throws InterruptedException {
		    if (item == null)
		        item = call.execute().body();
		    return true;
		}
		
		public boolean isReleasable() {
		    return item != null;
		}
		
		public E getItem() { // call after pool.managedBlock completes
		    return item;
		}
*/}
